﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace InterfacesTransformation
{
    public interface IGroupReducing
    {
        /// <summary>
        /// The host which manages plugins
        /// </summary>
        IHost PluginHost { get; set; }
        /// <summary>
        /// The name of the plugin
        /// </summary>
        string PluginName { get; }
        /// <summary>
        /// The user control of the plugin
        /// </summary>
        IGroupReducingUserControl PluginUserControl { get; }
        /// <summary>
        /// Initialize needed things for the plugin
        /// </summary>
        void Initialize();
        /// <summary>
        /// Dispose the plugin
        /// </summary>
        void PluginDispose();
        
        /// <summary>
        /// Reducing the number of webpages in groups.
        /// </summary>
        /// <param name="groups">List of original groups</param>
        /// <returns>List of reduced groups that contains webpage IDs</returns>
        List<List<int>> Reducing(List<List<int>> groups);
    }
}
